<?php
class ClientorderCollectionForm extends sfForm
{
  public function configure()
  {
    if (!$editionOptions = $this->getOption('editionoptionsid'))
    {
      throw new InvalidArgumentException('You must provide a edition options object.');
    }
 
    $clientOrder = new Clientorder();
    $clientOrder->setEditionoptions($editionOptions);
    
    $form = new ClientorderForm($clientOrder);
    $this->embedForm('Client order form', $form);
  }
}
?>